#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"

void StackTest()
{
	ST st;
	StackInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);

	//while (!StackEmpty(&st))
	//{
	//	printf("%d ", StackTop(&st));
	//	StackPop(&st);
	//}
	printf("size = %d\n", StackSize(&st));

	StackPop(&st);
	StackPop(&st);
	StackPop(&st);

	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}

	StackDestroy(&st);
}

int main()
{
	StackTest();

	return 0;
}